home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / game / text / EAC14b.lha / EAC / Developers / Tutorials / Tutorial_05.EAC < prev    next >
Text File  |  1980-12-07  |  2KB  |  83 lines

  1. .----------------------------------------------------------------------------.
  2. |  This demo shows how we can use variables in our adventure to represent    |
  3. |  collectable items. Here I declared a key to equal 0 , which means I have  |
  4. |  not yet collected it. Remember that all varibles MUST be declared before  |
  5. |  use in the adventure!!! -                                                 |
  6. `----------------------------------------------------------------------------'
  7.  
  8. DEC:key=0
  9.  
  10. PAGE:START
  11.  
  12. The Woodland demo 
  13. -----------------
  14. PAGE:START3
  15. You are lost deep in the woodlands. The trees are very tall, blocking the
  16. sunlight, casting darkness over the area.
  17.  
  18. GOIF:key=0:See_A_Key
  19. PAGE:START2
  20. ADDOPTIF:key=1:Drop the key:Drop_The_Key
  21. ADDOPTIF:key=0:Pick up the key:Pick_Up_The_Key
  22. ADDOPT:Go north:North1
  23. ENDPAGE:
  24.  
  25. PAGE:See_A_Key
  26. In the deep grass you can see something gold. A closer look reveals that
  27. it is a key!
  28.  
  29. GOTO:START2
  30. ENDPAGE:
  31.  
  32. PAGE:Drop_The_Key
  33.  
  34. You drop the key!
  35.  
  36. LET:key=0
  37. GOTO:START2
  38.  
  39. ENDPAGE:
  40.  
  41. PAGE:Pick_Up_The_Key
  42.  
  43. You pick up the key!
  44.  
  45. LET:key=1
  46. GOTO:START2
  47. ENDPAGE:
  48.  
  49. PAGE:North1
  50.  
  51. You continue travelling north, where you come to a large castle.
  52.  
  53. PAGE:North2
  54. ADDOPTIF:key=0:Open the door:Castle_Door_Locked
  55. ADDOPTIF:key=1:Open the door:Castle_Door_Unlock
  56. ADDOPT:Go south:START3
  57.  
  58. ENDPAGE:
  59.  
  60. PAGE:Castle_Door_Locked
  61. You try to open the castle door but it is locked.
  62.  
  63. GOTO:North2
  64. ENDPAGE:
  65.  
  66. PAGE:Castle_Door_Unlock
  67. You put the key into the castle door's lock and with much effort manage 
  68. to turn it. the door then opens. Where you find treasures beyond your
  69. wildest dreams. 
  70.  
  71. Congratulations!!! You have completed the key demo!
  72.  
  73. ENDPAGE:
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.